home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 2 / The Arsenal Files 2 (Arsenal Computer).ISO / os2 / pgmg20c1.exe / PGMGC1.ZIP / INCLUDE / ftpapi.h next >
Encoding:
C/C++ Source or Header  |  1994-01-20  |  2.9 KB  |  62 lines

  1. #ifndef __FTPAPI_32H
  2. #define __FTPAPI_32H
  3. #define T_ASCII      1
  4. #define T_EBCDIC     2
  5. #define T_BINARY     3
  6.  
  7. /* command/reply trace file modes */
  8. #define M_OVERLAY    1
  9. #define M_APPEND     2
  10.  
  11. /* command/reply tracing error codes */
  12. #define TRCMODE      1     /* invalid trace file open mode */
  13. #define TRCOPEN      2     /* unable to open trace file */
  14.  
  15. extern int ftperrno;
  16. #define FTPSERVICE    1    /* ftp: ftp/tcp: unknown service */
  17. #define FTPHOST       2    /* unknown host */
  18. #define FTPSOCKET     3    /* unable to obtain socket */
  19. #define FTPCONNECT    4    /* unable to connect to server */
  20. #define FTPLOGIN      5    /* login failed */
  21. #define FTPABORT      6    /* transfer aborted */
  22. #define FTPLOCALFILE  7    /* problem openning local file */
  23. #define FTPDATACONN   8    /* problem initializing data connection */
  24. #define FTPCOMMAND    9    /* command failed */
  25. #define FTPPROXYTHIRD 10   /* proxy server does not support third party transfers */
  26. #define FTPNOPRIMARY  11   /* No primary connection for proxy transfer */
  27. #define FTPNOXLATETBL 12   /* No code page translation table was loded */
  28.  
  29. /* ping error codes */
  30. #define PINGREPLY     -1   /* host does not reply */
  31. #define PINGSOCKET    -3   /* unable to obtain socket */
  32. #define PINGPROTO     -4   /* unknown protcol ICMP */
  33. #define PINGSEND      -5   /* send failed */
  34. #define PINGRECV      -6   /* recv failed */
  35. #define PINGHOST      -7   /* can't resolve the host name */
  36.  
  37. void _System ftplogoff(void);
  38. int _System ftpget(char *, char *, char *, char *, char *, char *, char *, int);
  39. int _System ftpput(char *, char *, char *, char *, char *, char *, int);
  40. int _System ftpappend(char *, char *, char *, char *, char *, char *, int);
  41. int _System ftpputunique(char *, char *, char *, char *, char *, char *, int);
  42. int _System ftpcd(char *, char *, char *, char *, char *);
  43. int _System ftpmkd(char *, char *, char *, char *, char *);
  44. int _System ftprmd(char *, char *, char *, char *, char *);
  45. int _System ftpdelete(char *, char *, char *, char *, char *);
  46. int _System ftprename(char *, char *, char *, char *, char *, char *);
  47. int _System ftpls(char *, char *, char *, char *, char *, char *);
  48. int _System ftpdir(char *, char *, char *, char *, char *, char *);
  49. int _System ftpproxy(char *, char *, char *, char *, char *, char *, char *, char *, char *, char *, int);
  50. int _System ftpsite(char *, char *, char *, char *, char *);
  51. int _System ftpquote(char *, char *, char *, char *, char *);
  52. int _System ftpping(char *, int, unsigned long *);
  53. int _System ftppwd(char *, char *, char *, char *, char *, int);
  54. int _System ftpsys(char *, char *, char *, char *, char *, int);
  55. int _System ping(unsigned long, int);
  56. int _System ftp_errno(void);
  57. int _System ftpxlate(unsigned long, char *);
  58. int _System ftpver(char *, int);
  59. int _System ftptrcon(char *, int);
  60. int _System ftptrcoff(void);
  61. #endif /* __FTPAPI_32H */
  62.